﻿

using FreeSql.DataAnnotations;
using System.ComponentModel;

namespace LYR_RPA.models.project
{
    public class Folder: INotifyPropertyChanged
    {
        [Column(IsIdentity = true ,IsPrimary =true)]
        public int id { get; set; }
        public string path { get; set; }
        public int isFolder { get; set; }

        public int Id
        {
            get => id;
            set
            {
                id = value;
                OnPropertyChanged(nameof(Id));
            }
        }
        public string Path { 
            get => path;
            set
            {
                path = value;
                OnPropertyChanged(nameof(Path));
            }
        }
        public int IsFolder {
            get => isFolder;
            set
            {
                isFolder = value; 
                OnPropertyChanged(nameof(IsFolder));
            }
        }
        public event PropertyChangedEventHandler PropertyChanged;

        protected virtual void OnPropertyChanged(string propertyName)
        {
            PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
        }
    }
}
